package com.cloud.auth.biz.jwt.config;

import com.cloud.auth.biz.jwt.user.UserJwtClient;
import com.cloud.auth.biz.jwt.user.UserJwtProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 王霄
 * @date 2022/6/17 10:34
 */
@Configuration
@EnableConfigurationProperties(value = {UserJwtProperties.class})
public class JwtConfig {

    @Bean
    public UserJwtClient userJwtClient(UserJwtProperties userJwtProperties) {
        return new UserJwtClient(userJwtProperties, String.class);
    }

}
